import {createRouter,createWebHashHistory, createWebHistory} from 'vue-router'

const routes = [
    {
        path: '/',
        name: 'home',
        component: () => import( '../views/Home.vue')
    }
]

const router = createRouter({
    //https://blog.csdn.net/jay100500/article/details/130072520
    // history: createWebHistory(process.env.BASE_URL),
    history: createWebHashHistory(process.env.BASE_URL),
    routes
})

export default router